<?php $this->Hinc('header');?>
<link href="/Public/Home/public/newindex.css" rel="stylesheet" type="text/css">
<link href="/Public/Home/public/indextopbn.css" rel="stylesheet" type="text/css">

<div class="category-column">
    <div class="goods-category">
        <?php foreach($this->data['farr'] as $v){?>
        <ul>
            <!--分类列表循环-->
            <li class="goods-category-li">
                <div class="goods-category-name">
                    <div class="goods-category-title">
                        <a href="<?php $this->U('Index','lis&fid='.$v['id'])?>"><?php echo $v['title']?></a>
                    </div>
                    <!--商品名字-->
                    <div class="goods-category-links">
                        <ul>
                            <?php foreach($v['goods'] as $j){?>
                            <li>
                                <a href="<?php $this->U('Index','goods&id='.$j['id'])?>"><?php echo $j['name']?></a>
                            </li>
                            <?php }?>
                        </ul>
                    </div>
                </div>
                <!--商品图片和价格-->
                <div class="goods-category-second">
                    <ul>
                        <?php foreach($v['goods'] as $j){?>
                        <li>
                            <a href="<?php $this->U('Index','goods&id='.$j['id'])?>">
                                <img alt="" src="<?php echo substr(strrchr($j['img'],'|'),1)?>">
                                <span><?php echo $j['name']?></span>
                            </a>
                        </li>
                        <?php }?>
                    </ul>
                </div>
            </li>
        </ul>

        <?php }?>

    </div>


    <div class="banner-link-region banner-href">
        <div class="banner-control" id="js_ban_button_box">
            <a href="javascript:;" class="banner-control-left"></a>
            <a href="javascript:;" class="banner-control-right"></a></div>
    </div>


    <div class="banner-link-hd">
        <ul>
            <!--banner 下面的切换-->
            <?php $barr=explode('|',$warr['wbanner']);$l=0; foreach($barr as $k=>$v){if($v){?>
            <li <?php if($l!=0){echo "class='on'";}?>></li>
            <?php }}?>
        </ul>
    </div>
</div>


<!--栏目-->
<?php foreach($larr as $v){?>
<div class="star-goods-list">
    <h2><?php echo $v['title']?></h2>
    <div class="star-move" style="display: block;">
        <a href="<?php $this->U('Index','lis&lid='.$v['id'])?>" style="color: #000; padding: 5px 8px;  border: solid 1px #ccc;">更多</a>
    </div>
    <div class="star-goods">
        <ul>
           <?PHP foreach($v['goods'] as $j){?>
            <li class="star-goods-li" style="background-color: rgb(236, 236, 236);">
                <div class="star-goods-content" style="left: 0px;">
                    <img alt="" src="<?php echo substr(strrchr($j['img'],'|'),1)?>">
                    <div class="star-goods-content-text" style="left: 0px;">
                        <p class="star-goods-content-title">
                            <?php echo $j['name']?>
                        </p>
                        <p class="star-goods-content-introduce">
                            <?php echo $j['msg']?>
                        </p>
                        <p class="star-goods-content-price">
                            ¥<?php echo $j['money']?>
                        </p>
                    </div>
                </div>
                <div class="star-goods-details" style="right: -51%;">
                    <p class="star-goods-details-title">
                        <?php echo $j['name']?>
                    </p>
                    <p class="star-goods-details-price">
                        ¥<?php echo $j['money']?>元
                    </p>
                    <ul class="star-goods-details-parameter ">
                        <?php echo $j['msg']?>
                    </ul>
                </div>
                <div class="star-goods-details-links" style="right: -100%;">
                    <a class="star-goods-details-links01" href="<?php $this->U('Index','goods&id='.$j['id'])?>" target="_blank">立即购买</a>
                    <a class="star-goods-details-links02" href="<?php $this->U('Index','goods&id='.$j['id'])?>" target="_blank">查看详情</a>
                </div>
            </li>
           <?php }?>
        </ul>
    </div>
</div>
<?php }?>
<!--栏目 end-->
<?php $this->Hinc('footer')?>
